﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;

namespace CarService
{
    public partial class AboutUS : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Load_Data();
            }
        }

        private void Load_Data()
        {
            SettingInfo settingInfo = SettingData.SelectBySiteID(Config.Global.Settings.SiteID);

            Page.Title = settingInfo.SiteName + " - " + settingInfo.SiteURL;
            Page.MetaDescription = settingInfo.SiteDescription;
            Page.MetaKeywords = settingInfo.SiteKeyword;
            lblTitle.Text = settingInfo.SiteName;
            lblContent.Text = settingInfo.SiteAbout;
        }
    }
}